@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import '../iconfont/iconfont.css';
@import './base.css';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
.flex-0 {
  flex-grow:0; 
  flex-shrink:0;
  flex-basis:auto;
}
.flex-1{
  flex: 1;
}
label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.no-wrap {
  white-space:nowrap;
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  display: flex;
  flex-direction: column;
  padding:16px 16px 0 16px;
  // height: 100%;
  height: calc(100vh - 50px);
  background-color:var(--body-bg); //#f6f6f6;// #f2f3f5;//#d5d4d0;
  .query-form  {
    flex: 0;
  }
  .content-container  {
    flex: 1;
  }
}

.query-form {
  background-color: #fff;
  padding: 12px 16px 0 16px;
  margin-bottom: 16px;
  // padding-top: 7px;
  .el-form-item {
    margin-bottom: 16px !important;
    margin-right: 16px;
  }
  .el-form-item__label{
    padding-right: 8px;
    font-family: PingFangSC-Regular;
    font-size: 14px;
    font-weight: normal;
    color: #4E5969;
  }
  .el-input__inner {
    border-radius:2px;
    &::placeholder {
      color: #86909C;
    }
  }
  .el-input__icon{
    // color: #4E5969 !important;
  }
  .el-cascader,
  .el-select,
  .el-date-editor,
  .vue-treeselect {
    width:130px ;
  }

  .vue-treeselect.mini {
    .vue-treeselect__menu{
      overflow: auto;
      width: 210px;
    }
  }
  .vue-treeselect__control{
    border-radius: 0 !important;
  }
  .el-form-item__label {
    // padding: 0;
  }
  .el-range-input {
    background-color: var(--input-bg);
  }
}

.select_no_border{
  .el-input__inner {
    color: var(--color--primary);
    border:none;
    // background-color: var(--input-bg);
    border-radius:2px
  }
}

.content-container {
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  background-color:#fff;
  padding: 0 16px;
  margin-bottom: 16px;
  height: calc(100% - 16px);
  .handle_bar { 
    flex: 0 0 56px;
  }
  .el-table {
	  overflow: auto;
    flex: 1;
    // border: 1px solid #E5E6EB;
    // border-radius: 4px;
  }
  .pagination-container {
    flex: 0 0 auto;
    overflow: hidden;
    padding-right: 0 !important;
  }
  .pagination-container .el-pagination {
    float: right;
  }
}
// .content-container.height_100-query_from{
//   height: calc(100% - 66px - 16px);
// }

// .content-container .el-table {
//   .el-table__header-wrapper th,
//   .el-table__fixed-header-wrapper th{
//     font-family: PingFangSC-Medium;
//     font-size: 14px;
//     color: #86909C;
//     background-color: #f2f3f5;
//   }
//   &.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
//     background: #f7f8fa;
//   }
//   &.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
//     background-color: #cbedff;
//   }
// }

.handle_bar {
  display:flex;
  justify-content: space-between; 
  align-items: center; 
  height:56px;
  .tit {
    line-height: 1;
    font-size:16px;
    color:#000;
    // font-weight: bold;
    font-family: AppleSystNaNpxUIFont;
    span{
      display: inline-block;
      vertical-align: top;
    }
  }
}


.components-container {
  margin: 30px 50px;
  position: relative;
}

// .pagination-container {
//   margin-top: 30px;
// }

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}


// 修改弹窗样式
.el-dialog {
  border-radius: 2px;
  .el-form-item__label {
    font-family: PingFangSC-Regular;
    font-size: 14px;
    font-weight: 400;
  }
  .el-form--label-top .el-form-item__label{
    padding-bottom: 0;
  }
  .el-form-item--small.el-form-item {
    margin-bottom: 12px;
  }
}
.el-dialog__header {
    padding: 12px 20px;
    border-radius: 4px 4px 0 0;
    background: #F2F6FD;
    // box-shadow: inset 0 -1px 0 0 #C4DBFE;
    border-bottom: 1px solid #E9ECF0;
    height: 46px;
    overflow: hidden;
}
.el-dialog__body {
  padding: 16px 20px;
}
.el-dialog__footer {
  border-top: 1px solid #E9ECF0;
}
.el-dialog__title {
  font-size: 16px;
  // font-weight: ;
  font-family: 微软雅黑;
}
.el-dialog__headerbtn {
  color: #4E5969;
  top: 16px;
}

// 隐藏滚动条
.hidden-scroll {
  scrollbar-width: none; /* firefox */
  -ms-overflow-style: none; /* IE 10+ */
  &::-webkit-scrollbar {
    display: none; /* Chrome Safari */
  }
}
// 滚动条样式
.beauty-scroll{
  // scrollbar-color: #dfe4ed var(--color--primary);
  // scrollbar-width: thin;
  // -ms-overflow-style:none;
  // position: relative;
  &::-webkit-scrollbar{ /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
    width: 8px;
    height: 8px;
    background: #f2f2f2;
  }
  &::-webkit-scrollbar-thumb {  /*定义滑块 内阴影+圆角*/
    // border-radius: 3px;
    // background: var(--color--primary);
    background: #b4bbc5;
    border-radius: 10px;
    border: 0;
  }
  // &::-webkit-scrollbar-track { /*定义滚动条轨道 内阴影+圆角*/
  //   -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0);
  //   border-radius: 3px;
  //   background: #dfe4ed;
  // }
}
// 表格滚动条样式
.el-table__body-wrapper {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    border-radius: 2px;
  }
  &::-webkit-scrollbar-thumb  {
    background-color:rgba(50, 50, 50, 0.5);//gray;
    border-radius: 2px;
  }
}
.el-table__fixed-right {
  right: 10px !important;
}
.detail-form {
    .el-form-item {
      margin-bottom: 13px;
    }
    .el-form-item__label {
      font-size: 12px;
      padding-right: 8px;
      // font-weight: normal;
    }
    .el-input__inner {
      border-radius: 0;
    }
    .el-input.is-disabled .el-input__inner  {
      color:#444;
      // background-color: #fff;
    }
    .el-textarea.is-disabled .el-textarea__inner {
      color:#444;
    }
    .el-form-item__error {
      z-index: 1;
    }
    // .el-input-group__append,
    // .el-input-group__prepend{
    //   background-color: #fff;
    //   color: #444;
    //   padding: 0 6px;
    //   border-radius: 0;
    // }
}
.vue-treeselect.mini {
  .vue-treeselect__control {
    box-sizing: border-box;
    height: 29px;
    line-height: 28px;
    border-radius: 0;
  }
  .vue-treeselect__placeholder, .vue-treeselect__single-value {
    line-height: 28px;
  }
}
.vue-treeselect.small {
  .vue-treeselect__control {
    box-sizing: border-box;
    height: 30px;
    border-radius: 0;
    line-height: 30px;
  }
  .vue-treeselect__placeholder, .vue-treeselect__single-value {
    line-height: 28px;
  }
}

.text-no-wrap{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

// 自定义table表样式
.m-table {
  width: 100%;
  border-collapse:collapse;
  border-color: #e6ebf5;
  font-size: 12px;
  margin: 1px 0;
}
.m-table  th {
  padding: 8px 10px;
  font-weight: bold;
  color: #909399;
  background: #fafafa;
}
.m-table td {
  padding: 8px;
  text-align: center;
}

.text-gradient-to-r-white {
  background-image:-webkit-linear-gradient(left,rgba(255,255,255,0.6),#fff,rgba(255,255,255,0.6));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}